package io;

import java.io.File;
import java.util.Scanner;

public class DeleteOnExitDemo {
    public static void main(String[] args) {
        //deleteOnExit---在进程退出的时候删除
        File file=new File("./test.txt.txt");
        file.deleteOnExit();
        System.out.println("执行删除完毕");

        Scanner scanner=new Scanner(System.in);
        scanner.next();//通过scanner构造出一个阻塞的状态


    }
}
